package com.bishe.bishe.dao.mapper;

import com.bishe.bishe.pojo.State;
import org.apache.ibatis.annotations.*;
import tk.mybatis.mapper.common.Mapper;

public interface StateMapper extends Mapper<State> {
    @Results({
            @Result(property = "stateId",column = "state_id"),
            @Result(property = "stateName",column = "state_name")
    }
    )
    @Select("select state_name from state where state_name=#{stateName} ")
    public State findall(String stateName);
}
